<%@page import="java.util.*"%>
<%@page import="java.util.Iterator"%>
<%@page import="com.dealinga.server.DataStoreOfy"%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="com.google.appengine.api.users.User" %>
<%@ page import="com.google.appengine.api.users.UserService" %>
<%@ page import="com.google.appengine.api.users.UserServiceFactory" %>
<%@ page import="com.dealinga.shared.*" %>

<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="content-language" content="en">

<link rel="image_src" href="./dealinga_files/logo_fb.png" type="image/jpeg">
<link href="./dealinga_files/css" rel="stylesheet" type="text/css">
<meta property="og:image" content="./dealinga_files/logo_fb.png">
<link type="text/css" href="./dealinga_files/style.css" rel="stylesheet">

<title>Dealinga - explore Europe save money</title>


<script type="text/javascript" async="" src="./dealinga_files/ga.js"></script>
<script type="text/javascript" src="./dealinga_files/jquery-1.7.min.js"></script>
<script type="text/javascript" src="./dealinga_files/jquery.bxSlider.min.js"></script>
<script type="text/javascript" src="./dealinga_files/jquery.easing.1.3.js"></script>
<script type="text/javascript">

  $(document).ready(function(){
    var places = $('#places').bxSlider({
    	controls:false
    });
    
    var activities = $('#activities').bxSlider({
    	controls:false
    });
    
    $('.slidePager').click(function(event){
	    event.preventDefault();	   
	    
	    if ($(this).parents("h2").attr("slider-id")=="places") {
	    	places.goToSlide($(this).attr("slide-index"));
	    }
	    else {
	    	activities.goToSlide($(this).attr("slide-index"));	    
	    }	    
	    $(this).parents("h2").find('.slidePager').removeClass("active");
	    $(this).addClass("active")
    
    });
  });
  
</script>

<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-27072919-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>

<script type="text/javascript" language="javascript" src="dealingaopen/dealingaopen.nocache.js"></script>
</head>

<body>
<div id="personal">
<%
    UserService userService = UserServiceFactory.getUserService();
    User user = userService.getCurrentUser();
    if (user != null) {
%>
<p>Hello, <%= user.getNickname() %>! (You can
<a href="<%= userService.createLogoutURL(request.getRequestURI()) %>">sign out</a>.)</p>
<%
    } else {
%>
<p>Hello!
<a href="<%= userService.createLoginURL(request.getRequestURI()) %>">Sign in</a>
to include your name with greetings you post.</p>
<%
    }
%>
</div>


<div id="info"></div> 

<div id="header">

<form id="SubscribeForm" method="post" action="./subscribe" enctype="text/plain">
<p>DAILY DIGEST OF DEALS FROM EUROPE&nbsp; <img alt="" src="./dealinga_files/arrow.png"></p>
<input id="email" type="text" name="email">
<input id="btn_subscribe" type="button" value="Subscribe" class="Button">
</form>

<a href="./"><img alt="" src="./dealinga_files/logo.png"></a>
</div>

<div id="content">

<jsp:include page="Places.jsp"></jsp:include>



<div id="footer">
<div id="left">
<a href="./adddeal" class="highlight">+ Add my deal</a>
</div>
<div id="center">
<a href="./about">About</a> | <a href="./contact">Contact</a> | <a href="./privacy">Privacy</a> | <a href="./terms">Terms</a>
</div>
<div id="right">
Â© Dealinga, 2011
</div>
</div>




</body></html>